\hypertarget{class_q_c_p_layerable}{}\section{Q\+C\+P\+Layerable Class Reference}
\label{class_q_c_p_layerable}\index{Q\+C\+P\+Layerable@{Q\+C\+P\+Layerable}}


Base class for all drawable objects.  


Inheritance diagram for Q\+C\+P\+Layerable\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=6.075950cm]{class_q_c_p_layerable}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{class_q_c_p_layerable_abbf8657cedea73ac1c3499b521c90eba}{layer\+Changed}} (\mbox{\hyperlink{class_q_c_p_layer}{Q\+C\+P\+Layer}} $\ast$new\+Layer)
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_q_c_p_layerable_a74c0fa237f29bf0e49565013fc5d1ec0}{Q\+C\+P\+Layerable}} (\mbox{\hyperlink{class_q_custom_plot}{Q\+Custom\+Plot}} $\ast$plot, Q\+String target\+Layer=Q\+String(), \mbox{\hyperlink{class_q_c_p_layerable}{Q\+C\+P\+Layerable}} $\ast$\mbox{\hyperlink{class_q_c_p_layerable_aa78b7e644d2c519e1a9a6f2ac5fcd858}{parent\+Layerable}}=0)
\item 
\mbox{\Hypertarget{class_q_c_p_layerable_af0297b944b6192b6d67d00bff41b6b70}\label{class_q_c_p_layerable_af0297b944b6192b6d67d00bff41b6b70}} 
bool {\bfseries visible} () const
\item 
\mbox{\Hypertarget{class_q_c_p_layerable_a473edb813a4c1929d6b6a8fe3ff3faf7}\label{class_q_c_p_layerable_a473edb813a4c1929d6b6a8fe3ff3faf7}} 
\mbox{\hyperlink{class_q_custom_plot}{Q\+Custom\+Plot}} $\ast$ {\bfseries parent\+Plot} () const
\item 
\mbox{\hyperlink{class_q_c_p_layerable}{Q\+C\+P\+Layerable}} $\ast$ \mbox{\hyperlink{class_q_c_p_layerable_aa78b7e644d2c519e1a9a6f2ac5fcd858}{parent\+Layerable}} () const
\item 
\mbox{\Hypertarget{class_q_c_p_layerable_a5ff4862e8c784c9f5986dbc1533ba2a4}\label{class_q_c_p_layerable_a5ff4862e8c784c9f5986dbc1533ba2a4}} 
\mbox{\hyperlink{class_q_c_p_layer}{Q\+C\+P\+Layer}} $\ast$ {\bfseries layer} () const
\item 
\mbox{\Hypertarget{class_q_c_p_layerable_a71cbd212fde2703cee076e204a475709}\label{class_q_c_p_layerable_a71cbd212fde2703cee076e204a475709}} 
bool {\bfseries antialiased} () const
\item 
void \mbox{\hyperlink{class_q_c_p_layerable_a3bed99ddc396b48ce3ebfdc0418744f8}{set\+Visible}} (bool on)
\item 
Q\+\_\+\+S\+L\+OT bool \mbox{\hyperlink{class_q_c_p_layerable_ab0d0da6d2de45a118886d2c8e16d5a54}{set\+Layer}} (\mbox{\hyperlink{class_q_c_p_layer}{Q\+C\+P\+Layer}} $\ast$layer)
\item 
bool \mbox{\hyperlink{class_q_c_p_layerable_ab25a0e7b897993b44447caee0f142083}{set\+Layer}} (const Q\+String \&layer\+Name)
\item 
void \mbox{\hyperlink{class_q_c_p_layerable_a4fd43e89be4a553ead41652565ff0581}{set\+Antialiased}} (bool enabled)
\item 
virtual double \mbox{\hyperlink{class_q_c_p_layerable_a04db8351fefd44cfdb77958e75c6288e}{select\+Test}} (const Q\+PointF \&pos, bool only\+Selectable, Q\+Variant $\ast$details=0) const
\item 
bool \mbox{\hyperlink{class_q_c_p_layerable_ab054e88f15d485defcb95e7376f119e7}{real\+Visibility}} () const
\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_c_p_layerable_ab20b7dbd8e0249ed61adb9622c427382}\label{class_q_c_p_layerable_ab20b7dbd8e0249ed61adb9622c427382}} 
virtual void {\bfseries parent\+Plot\+Initialized} (\mbox{\hyperlink{class_q_custom_plot}{Q\+Custom\+Plot}} $\ast$parent\+Plot)
\item 
\mbox{\Hypertarget{class_q_c_p_layerable_a908c9edda761886f33893be326dab77d}\label{class_q_c_p_layerable_a908c9edda761886f33893be326dab77d}} 
virtual \mbox{\hyperlink{namespace_q_c_p_a2ad6bb6281c7c2d593d4277b44c2b037}{Q\+C\+P\+::\+Interaction}} {\bfseries selection\+Category} () const
\item 
\mbox{\Hypertarget{class_q_c_p_layerable_acbcfc9ecc75433747b1978a77b1864b3}\label{class_q_c_p_layerable_acbcfc9ecc75433747b1978a77b1864b3}} 
virtual Q\+Rect {\bfseries clip\+Rect} () const
\item 
\mbox{\Hypertarget{class_q_c_p_layerable_afdf83ddc6a265cbf4c89fe99d3d93473}\label{class_q_c_p_layerable_afdf83ddc6a265cbf4c89fe99d3d93473}} 
virtual void {\bfseries apply\+Default\+Antialiasing\+Hint} (\mbox{\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter}} $\ast$painter) const =0
\item 
\mbox{\Hypertarget{class_q_c_p_layerable_aecf2f7087482d4b6a78cb2770e5ed12d}\label{class_q_c_p_layerable_aecf2f7087482d4b6a78cb2770e5ed12d}} 
virtual void {\bfseries draw} (\mbox{\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter}} $\ast$painter)=0
\item 
\mbox{\Hypertarget{class_q_c_p_layerable_a7498c2d0d081cf7cad0fb3bb93aa0e91}\label{class_q_c_p_layerable_a7498c2d0d081cf7cad0fb3bb93aa0e91}} 
virtual void {\bfseries select\+Event} (Q\+Mouse\+Event $\ast$event, bool additive, const Q\+Variant \&details, bool $\ast$selection\+State\+Changed)
\item 
\mbox{\Hypertarget{class_q_c_p_layerable_ae546370644a5551c76af739afc008bee}\label{class_q_c_p_layerable_ae546370644a5551c76af739afc008bee}} 
virtual void {\bfseries deselect\+Event} (bool $\ast$selection\+State\+Changed)
\item 
\mbox{\Hypertarget{class_q_c_p_layerable_a8cbe5a0c9a5674249982f5ca5f8e02bc}\label{class_q_c_p_layerable_a8cbe5a0c9a5674249982f5ca5f8e02bc}} 
void {\bfseries initialize\+Parent\+Plot} (\mbox{\hyperlink{class_q_custom_plot}{Q\+Custom\+Plot}} $\ast$parent\+Plot)
\item 
\mbox{\Hypertarget{class_q_c_p_layerable_aa23c893671f1f6744ac235cf2204cf3a}\label{class_q_c_p_layerable_aa23c893671f1f6744ac235cf2204cf3a}} 
void {\bfseries set\+Parent\+Layerable} (\mbox{\hyperlink{class_q_c_p_layerable}{Q\+C\+P\+Layerable}} $\ast$\mbox{\hyperlink{class_q_c_p_layerable_aa78b7e644d2c519e1a9a6f2ac5fcd858}{parent\+Layerable}})
\item 
\mbox{\Hypertarget{class_q_c_p_layerable_af94484cfb7cbbddb7de522e9be71d9a4}\label{class_q_c_p_layerable_af94484cfb7cbbddb7de522e9be71d9a4}} 
bool {\bfseries move\+To\+Layer} (\mbox{\hyperlink{class_q_c_p_layer}{Q\+C\+P\+Layer}} $\ast$layer, bool prepend)
\item 
\mbox{\Hypertarget{class_q_c_p_layerable_acb663e375d2d36dc5c55021ee5a2119b}\label{class_q_c_p_layerable_acb663e375d2d36dc5c55021ee5a2119b}} 
void {\bfseries apply\+Antialiasing\+Hint} (\mbox{\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter}} $\ast$painter, bool local\+Antialiased, \mbox{\hyperlink{namespace_q_c_p_ae55dbe315d41fe80f29ba88100843a0c}{Q\+C\+P\+::\+Antialiased\+Element}} override\+Element) const
\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_c_p_layerable_a62e3aed8427d6ce3ccf716f285106cb3}\label{class_q_c_p_layerable_a62e3aed8427d6ce3ccf716f285106cb3}} 
bool {\bfseries m\+Visible}
\item 
\mbox{\Hypertarget{class_q_c_p_layerable_aa2a528433e44db02b8aef23c1f9f90ed}\label{class_q_c_p_layerable_aa2a528433e44db02b8aef23c1f9f90ed}} 
\mbox{\hyperlink{class_q_custom_plot}{Q\+Custom\+Plot}} $\ast$ {\bfseries m\+Parent\+Plot}
\item 
\mbox{\Hypertarget{class_q_c_p_layerable_a3291445a980053e2d17a21d15957624e}\label{class_q_c_p_layerable_a3291445a980053e2d17a21d15957624e}} 
Q\+Pointer$<$ \mbox{\hyperlink{class_q_c_p_layerable}{Q\+C\+P\+Layerable}} $>$ {\bfseries m\+Parent\+Layerable}
\item 
\mbox{\Hypertarget{class_q_c_p_layerable_aa38ec5891aff0f50b36fd63e9372a0cd}\label{class_q_c_p_layerable_aa38ec5891aff0f50b36fd63e9372a0cd}} 
\mbox{\hyperlink{class_q_c_p_layer}{Q\+C\+P\+Layer}} $\ast$ {\bfseries m\+Layer}
\item 
\mbox{\Hypertarget{class_q_c_p_layerable_a3ab45a4c76a3333ce42eb217a81733ec}\label{class_q_c_p_layerable_a3ab45a4c76a3333ce42eb217a81733ec}} 
bool {\bfseries m\+Antialiased}
\end{DoxyCompactItemize}
\subsection*{Friends}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_c_p_layerable_a1cdf9df76adcfae45261690aa0ca2198}\label{class_q_c_p_layerable_a1cdf9df76adcfae45261690aa0ca2198}} 
class {\bfseries Q\+Custom\+Plot}
\item 
\mbox{\Hypertarget{class_q_c_p_layerable_acbf20ecb140f66c5fd1bc64ae0762990}\label{class_q_c_p_layerable_acbf20ecb140f66c5fd1bc64ae0762990}} 
class {\bfseries Q\+C\+P\+Axis\+Rect}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Base class for all drawable objects. 

This is the abstract base class most visible objects derive from, e.\+g. plottables, axes, grid etc.

Every layerable is on a layer (\mbox{\hyperlink{class_q_c_p_layer}{Q\+C\+P\+Layer}}) which allows controlling the rendering order by stacking the layers accordingly.

For details about the layering mechanism, see the \mbox{\hyperlink{class_q_c_p_layer}{Q\+C\+P\+Layer}} documentation. 

\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_q_c_p_layerable_a74c0fa237f29bf0e49565013fc5d1ec0}\label{class_q_c_p_layerable_a74c0fa237f29bf0e49565013fc5d1ec0}} 
\index{Q\+C\+P\+Layerable@{Q\+C\+P\+Layerable}!Q\+C\+P\+Layerable@{Q\+C\+P\+Layerable}}
\index{Q\+C\+P\+Layerable@{Q\+C\+P\+Layerable}!Q\+C\+P\+Layerable@{Q\+C\+P\+Layerable}}
\subsubsection{\texorpdfstring{Q\+C\+P\+Layerable()}{QCPLayerable()}}
{\footnotesize\ttfamily Q\+C\+P\+Layerable\+::\+Q\+C\+P\+Layerable (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_q_custom_plot}{Q\+Custom\+Plot}} $\ast$}]{plot,  }\item[{Q\+String}]{target\+Layer = {\ttfamily QString()},  }\item[{\mbox{\hyperlink{class_q_c_p_layerable}{Q\+C\+P\+Layerable}} $\ast$}]{parent\+Layerable = {\ttfamily 0} }\end{DoxyParamCaption})}

Creates a new \mbox{\hyperlink{class_q_c_p_layerable}{Q\+C\+P\+Layerable}} instance.

Since \mbox{\hyperlink{class_q_c_p_layerable}{Q\+C\+P\+Layerable}} is an abstract base class, it can\textquotesingle{}t be instantiated directly. Use one of the derived classes.

If {\itshape plot} is provided, it automatically places itself on the layer named {\itshape target\+Layer}. If {\itshape target\+Layer} is an empty string, it places itself on the current layer of the plot (see \mbox{\hyperlink{class_q_custom_plot_a73a6dc47c653bb6f8f030abca5a11852}{Q\+Custom\+Plot\+::set\+Current\+Layer}}).

It is possible to provide 0 as {\itshape plot}. In that case, you should assign a parent plot at a later time with initialize\+Parent\+Plot.

The layerable\textquotesingle{}s parent layerable is set to {\itshape parent\+Layerable}, if provided. Direct layerable parents are mainly used to control visibility in a hierarchy of layerables. This means a layerable is only drawn, if all its ancestor layerables are also visible. Note that {\itshape parent\+Layerable} does not become the Q\+Object-\/parent (for memory management) of this layerable, {\itshape plot} does. 

\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_q_c_p_layerable_abbf8657cedea73ac1c3499b521c90eba}\label{class_q_c_p_layerable_abbf8657cedea73ac1c3499b521c90eba}} 
\index{Q\+C\+P\+Layerable@{Q\+C\+P\+Layerable}!layer\+Changed@{layer\+Changed}}
\index{layer\+Changed@{layer\+Changed}!Q\+C\+P\+Layerable@{Q\+C\+P\+Layerable}}
\subsubsection{\texorpdfstring{layer\+Changed}{layerChanged}}
{\footnotesize\ttfamily void Q\+C\+P\+Layerable\+::layer\+Changed (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_q_c_p_layer}{Q\+C\+P\+Layer}} $\ast$}]{new\+Layer }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [signal]}}

This signal is emitted when the layer of this layerable changes, i.\+e. this layerable is moved to a different layer.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_q_c_p_layerable_ab0d0da6d2de45a118886d2c8e16d5a54}{set\+Layer}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_q_c_p_layerable_aa78b7e644d2c519e1a9a6f2ac5fcd858}\label{class_q_c_p_layerable_aa78b7e644d2c519e1a9a6f2ac5fcd858}} 
\index{Q\+C\+P\+Layerable@{Q\+C\+P\+Layerable}!parent\+Layerable@{parent\+Layerable}}
\index{parent\+Layerable@{parent\+Layerable}!Q\+C\+P\+Layerable@{Q\+C\+P\+Layerable}}
\subsubsection{\texorpdfstring{parent\+Layerable()}{parentLayerable()}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_q_c_p_layerable}{Q\+C\+P\+Layerable}} $\ast$ Q\+C\+P\+Layerable\+::parent\+Layerable (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}

Returns the parent layerable of this layerable. The parent layerable is used to provide visibility hierarchies in conjunction with the method \mbox{\hyperlink{class_q_c_p_layerable_ab054e88f15d485defcb95e7376f119e7}{real\+Visibility}}. This way, layerables only get drawn if their parent layerables are visible, too.

Note that a parent layerable is not necessarily also the Q\+Object parent for memory management. Further, a layerable doesn\textquotesingle{}t always have a parent layerable, so this function may return 0.

A parent layerable is set implicitly with when placed inside layout elements and doesn\textquotesingle{}t need to be set manually by the user. \mbox{\Hypertarget{class_q_c_p_layerable_ab054e88f15d485defcb95e7376f119e7}\label{class_q_c_p_layerable_ab054e88f15d485defcb95e7376f119e7}} 
\index{Q\+C\+P\+Layerable@{Q\+C\+P\+Layerable}!real\+Visibility@{real\+Visibility}}
\index{real\+Visibility@{real\+Visibility}!Q\+C\+P\+Layerable@{Q\+C\+P\+Layerable}}
\subsubsection{\texorpdfstring{real\+Visibility()}{realVisibility()}}
{\footnotesize\ttfamily bool Q\+C\+P\+Layerable\+::real\+Visibility (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}

Returns whether this layerable is visible, taking the visibility of the layerable parent and the visibility of the layer this layerable is on into account. This is the method that is consulted to decide whether a layerable shall be drawn or not.

If this layerable has a direct layerable parent (usually set via hierarchies implemented in subclasses, like in the case of \mbox{\hyperlink{class_q_c_p_layout_element}{Q\+C\+P\+Layout\+Element}}), this function returns true only if this layerable has its visibility set to true and the parent layerable\textquotesingle{}s \mbox{\hyperlink{class_q_c_p_layerable_ab054e88f15d485defcb95e7376f119e7}{real\+Visibility}} returns true.

If this layerable doesn\textquotesingle{}t have a direct layerable parent, returns the state of this layerable\textquotesingle{}s visibility. \mbox{\Hypertarget{class_q_c_p_layerable_a04db8351fefd44cfdb77958e75c6288e}\label{class_q_c_p_layerable_a04db8351fefd44cfdb77958e75c6288e}} 
\index{Q\+C\+P\+Layerable@{Q\+C\+P\+Layerable}!select\+Test@{select\+Test}}
\index{select\+Test@{select\+Test}!Q\+C\+P\+Layerable@{Q\+C\+P\+Layerable}}
\subsubsection{\texorpdfstring{select\+Test()}{selectTest()}}
{\footnotesize\ttfamily double Q\+C\+P\+Layerable\+::select\+Test (\begin{DoxyParamCaption}\item[{const Q\+PointF \&}]{pos,  }\item[{bool}]{only\+Selectable,  }\item[{Q\+Variant $\ast$}]{details = {\ttfamily 0} }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}}

This function is used to decide whether a click hits a layerable object or not.

{\itshape pos} is a point in pixel coordinates on the \mbox{\hyperlink{class_q_custom_plot}{Q\+Custom\+Plot}} surface. This function returns the shortest pixel distance of this point to the object. If the object is either invisible or the distance couldn\textquotesingle{}t be determined, -\/1.\+0 is returned. Further, if {\itshape only\+Selectable} is true and the object is not selectable, -\/1.\+0 is returned, too.

If the object is represented not by single lines but by an area like a \mbox{\hyperlink{class_q_c_p_item_text}{Q\+C\+P\+Item\+Text}} or the bars of a \mbox{\hyperlink{class_q_c_p_bars}{Q\+C\+P\+Bars}} plottable, a click inside the area should also be considered a hit. In these cases this function thus returns a constant value greater zero but still below the parent plot\textquotesingle{}s selection tolerance. (typically the selection\+Tolerance multiplied by 0.\+99).

Providing a constant value for area objects allows selecting line objects even when they are obscured by such area objects, by clicking close to the lines (i.\+e. closer than 0.\+99$\ast$selection\+Tolerance).

The actual setting of the selection state is not done by this function. This is handled by the parent \mbox{\hyperlink{class_q_custom_plot}{Q\+Custom\+Plot}} when the mouse\+Release\+Event occurs, and the finally selected object is notified via the select\+Event/deselect\+Event methods.

{\itshape details} is an optional output parameter. Every layerable subclass may place any information in {\itshape details}. This information will be passed to select\+Event when the parent \mbox{\hyperlink{class_q_custom_plot}{Q\+Custom\+Plot}} decides on the basis of this select\+Test call, that the object was successfully selected. The subsequent call to select\+Event will carry the {\itshape details}. This is useful for multi-\/part objects (like \mbox{\hyperlink{class_q_c_p_axis}{Q\+C\+P\+Axis}}). This way, a possibly complex calculation to decide which part was clicked is only done once in \mbox{\hyperlink{class_q_c_p_layerable_a04db8351fefd44cfdb77958e75c6288e}{select\+Test}}. The result (i.\+e. the actually clicked part) can then be placed in {\itshape details}. So in the subsequent select\+Event, the decision which part was selected doesn\textquotesingle{}t have to be done a second time for a single selection operation.

You may pass 0 as {\itshape details} to indicate that you are not interested in those selection details.

\begin{DoxySeeAlso}{See also}
select\+Event, deselect\+Event, \mbox{\hyperlink{class_q_custom_plot_a5ee1e2f6ae27419deca53e75907c27e5}{Q\+Custom\+Plot\+::set\+Interactions}} 
\end{DoxySeeAlso}


Reimplemented in \mbox{\hyperlink{class_q_c_p_item_bracket_a971299aa6fef75730d6f10efdaf48616}{Q\+C\+P\+Item\+Bracket}}, \mbox{\hyperlink{class_q_c_p_item_tracer_ae1dc728384936184e7552a6d0d67fd75}{Q\+C\+P\+Item\+Tracer}}, \mbox{\hyperlink{class_q_c_p_item_pixmap_a7583a98ebd3f35d2ac5d6c05fad25a6c}{Q\+C\+P\+Item\+Pixmap}}, \mbox{\hyperlink{class_q_c_p_item_ellipse_aa41be2180b2ace2e303b88d005c14243}{Q\+C\+P\+Item\+Ellipse}}, \mbox{\hyperlink{class_q_c_p_item_text_aca74494fd5e769f331a6eb3e29f32916}{Q\+C\+P\+Item\+Text}}, \mbox{\hyperlink{class_q_c_p_item_rect_abe1a6091591d3bad5e4efab2331f99ec}{Q\+C\+P\+Item\+Rect}}, \mbox{\hyperlink{class_q_c_p_item_curve_a8018b8b3fc552a44ba87ca4b64c1523f}{Q\+C\+P\+Item\+Curve}}, \mbox{\hyperlink{class_q_c_p_item_line_ae6cc5183f568e5fa9d7827abe4d405b5}{Q\+C\+P\+Item\+Line}}, \mbox{\hyperlink{class_q_c_p_item_straight_line_a1e5d99d79efb5871600c72bcd2891a0f}{Q\+C\+P\+Item\+Straight\+Line}}, \mbox{\hyperlink{class_q_c_p_financial_a77bffad8f3fcbcccbef03ead1c538e3a}{Q\+C\+P\+Financial}}, \mbox{\hyperlink{class_q_c_p_color_map_aba91ea58b489031157ecb777fe79e309}{Q\+C\+P\+Color\+Map}}, \mbox{\hyperlink{class_q_c_p_statistical_box_a0153ac16326b94450afbca208e3f9961}{Q\+C\+P\+Statistical\+Box}}, \mbox{\hyperlink{class_q_c_p_bars_a62d66cc8eedca6bedfc1f6513164d418}{Q\+C\+P\+Bars}}, \mbox{\hyperlink{class_q_c_p_curve_a87a9fb34a2a48dcae4c1245ada235e7d}{Q\+C\+P\+Curve}}, \mbox{\hyperlink{class_q_c_p_graph_a36011c34aca4f7a477de25961e2f6c13}{Q\+C\+P\+Graph}}, \mbox{\hyperlink{class_q_c_p_plot_title_aae4bcb2401e6947ea0abd3c960488d35}{Q\+C\+P\+Plot\+Title}}, \mbox{\hyperlink{class_q_c_p_legend_acd7be544c81324e391cfa6be9c413c01}{Q\+C\+P\+Legend}}, \mbox{\hyperlink{class_q_c_p_abstract_legend_item_ac834bf9003c491e5064a31e2a7de418d}{Q\+C\+P\+Abstract\+Legend\+Item}}, \mbox{\hyperlink{class_q_c_p_abstract_item_a96d522d10ffc0413b9a366c6f7f0476b}{Q\+C\+P\+Abstract\+Item}}, \mbox{\hyperlink{class_q_c_p_abstract_plottable_a38efe9641d972992a3d44204bc80ec1d}{Q\+C\+P\+Abstract\+Plottable}}, \mbox{\hyperlink{class_q_c_p_axis_a48e4f1bafd1826ba2ad46b691205bb90}{Q\+C\+P\+Axis}}, \mbox{\hyperlink{class_q_c_p_layout_inset_afcd56d5d1b8853838cdc535f1904f68a}{Q\+C\+P\+Layout\+Inset}}, and \mbox{\hyperlink{class_q_c_p_layout_element_a0b96ae0d7bcfa6e38188fcb1e73e143f}{Q\+C\+P\+Layout\+Element}}.

\mbox{\Hypertarget{class_q_c_p_layerable_a4fd43e89be4a553ead41652565ff0581}\label{class_q_c_p_layerable_a4fd43e89be4a553ead41652565ff0581}} 
\index{Q\+C\+P\+Layerable@{Q\+C\+P\+Layerable}!set\+Antialiased@{set\+Antialiased}}
\index{set\+Antialiased@{set\+Antialiased}!Q\+C\+P\+Layerable@{Q\+C\+P\+Layerable}}
\subsubsection{\texorpdfstring{set\+Antialiased()}{setAntialiased()}}
{\footnotesize\ttfamily void Q\+C\+P\+Layerable\+::set\+Antialiased (\begin{DoxyParamCaption}\item[{bool}]{enabled }\end{DoxyParamCaption})}

Sets whether this object will be drawn antialiased or not.

Note that antialiasing settings may be overridden by \mbox{\hyperlink{class_q_custom_plot_af6f91e5eab1be85f67c556e98c3745e8}{Q\+Custom\+Plot\+::set\+Antialiased\+Elements}} and \mbox{\hyperlink{class_q_custom_plot_ae10d685b5eabea2999fb8775ca173c24}{Q\+Custom\+Plot\+::set\+Not\+Antialiased\+Elements}}. \mbox{\Hypertarget{class_q_c_p_layerable_ab0d0da6d2de45a118886d2c8e16d5a54}\label{class_q_c_p_layerable_ab0d0da6d2de45a118886d2c8e16d5a54}} 
\index{Q\+C\+P\+Layerable@{Q\+C\+P\+Layerable}!set\+Layer@{set\+Layer}}
\index{set\+Layer@{set\+Layer}!Q\+C\+P\+Layerable@{Q\+C\+P\+Layerable}}
\subsubsection{\texorpdfstring{set\+Layer()}{setLayer()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily bool Q\+C\+P\+Layerable\+::set\+Layer (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_q_c_p_layer}{Q\+C\+P\+Layer}} $\ast$}]{layer }\end{DoxyParamCaption})}

Sets the {\itshape layer} of this layerable object. The object will be placed on top of the other objects already on {\itshape layer}.

Returns true on success, i.\+e. if {\itshape layer} is a valid layer. \mbox{\Hypertarget{class_q_c_p_layerable_ab25a0e7b897993b44447caee0f142083}\label{class_q_c_p_layerable_ab25a0e7b897993b44447caee0f142083}} 
\index{Q\+C\+P\+Layerable@{Q\+C\+P\+Layerable}!set\+Layer@{set\+Layer}}
\index{set\+Layer@{set\+Layer}!Q\+C\+P\+Layerable@{Q\+C\+P\+Layerable}}
\subsubsection{\texorpdfstring{set\+Layer()}{setLayer()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily bool Q\+C\+P\+Layerable\+::set\+Layer (\begin{DoxyParamCaption}\item[{const Q\+String \&}]{layer\+Name }\end{DoxyParamCaption})}

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Sets the layer of this layerable object by name

Returns true on success, i.\+e. if {\itshape layer\+Name} is a valid layer name. \mbox{\Hypertarget{class_q_c_p_layerable_a3bed99ddc396b48ce3ebfdc0418744f8}\label{class_q_c_p_layerable_a3bed99ddc396b48ce3ebfdc0418744f8}} 
\index{Q\+C\+P\+Layerable@{Q\+C\+P\+Layerable}!set\+Visible@{set\+Visible}}
\index{set\+Visible@{set\+Visible}!Q\+C\+P\+Layerable@{Q\+C\+P\+Layerable}}
\subsubsection{\texorpdfstring{set\+Visible()}{setVisible()}}
{\footnotesize\ttfamily void Q\+C\+P\+Layerable\+::set\+Visible (\begin{DoxyParamCaption}\item[{bool}]{on }\end{DoxyParamCaption})}

Sets the visibility of this layerable object. If an object is not visible, it will not be drawn on the \mbox{\hyperlink{class_q_custom_plot}{Q\+Custom\+Plot}} surface, and user interaction with it (e.\+g. click and selection) is not possible. 

The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/src/charts/qcustomplot/\mbox{\hyperlink{qcustomplot_8h}{qcustomplot.\+h}}\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/src/charts/qcustomplot/\mbox{\hyperlink{qcustomplot_8cpp}{qcustomplot.\+cpp}}\end{DoxyCompactItemize}
